package com.tianma315.admin.produce.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.tianma315.admin.common.base.CoreService;
import com.tianma315.admin.produce.VO.ScAdditiveVO;
import com.tianma315.admin.produce.domain.ScAdditiveDO;
import com.tianma315.admin.produce.dto.ScAdditiveDto;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 
 * <pre>
 * 配添加剂(生产)
 * </pre>
 * <small> 2019-05-30 09:53:17 | Aron</small>
 */
public interface ScAdditiveService extends CoreService<ScAdditiveDO> {

    Page<ScAdditiveVO> getScAdditiveVO(Integer pageNumber, Integer pageSize, ScAdditiveDO scAdditiveDTO);

    Boolean addScAdditiveDO(ScAdditiveDto scAdditiveDO);

    Boolean deleteScAdditiveDO(Integer id);

    List<ScAdditiveDO> getScAdditiveDO(Integer produceTaskId);

    HSSFWorkbook exportAdditive(Integer produceTaskId);

    void importAdditive(MultipartFile file, Long userId) ;

    ScAdditiveVO selectVOById(Integer additiveId);

    void updateDtoById(ScAdditiveDto scAdditive);
}
